package com.powerpoint.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;
import java.util.Map;


//@Data
//@NoArgsConstructor
//@AllArgsConstructor
//@ToString
@ConfigurationProperties
public class CollectionConfig {

    private List<MyServer> servers;
    private Map<String,User> users;

    public CollectionConfig() {
    }

    public CollectionConfig(List<MyServer> servers, Map<String, User> users) {
        this.servers = servers;
        this.users = users;
    }

    public List<MyServer> getServers() {
        return servers;
    }

    public void setServers(List<MyServer> servers) {
        this.servers = servers;
    }

    public Map<String, User> getUsers() {
        return users;
    }

    public void setUsers(Map<String, User> users) {
        this.users = users;
    }

    @Override
    public String toString() {
        return "CollectionConfig{" +
                "servers=" + servers +
                ", users=" + users +
                '}';
    }
}

